package com.bojiu.lawsearch.lawsearch.util;

/**
 * @author: afdiao
 * @Date：2020/3/1 21:46
 * @Description:
 */
public class RedisUtil {

    public static String getKeyBy2(String projectName, String modelName) {
        return String.format("%s:%s", projectName, modelName);
    }

    public static String getKeyBy3(String projectName, String modelName, String key) {
        return String.format("%s:%s:%s", projectName, modelName, key);
    }
}
